using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
    // Start is called before the first frame update
    PlayerCharacter player;
    public ParticleSystem particle;
    void Start()
    {
        player = GetComponent<PlayerCharacter>();
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.LeftShift))
        {
            if (!player.isBird)
            {
                if (player.canChangeToBird())
                {
                    player.ChangeCharacterStatus();
                }
                else
                {
                    Debug.Log("not enghou wind power");
                    //TODO: noti ui system no enough wind power to change to bird
                }
            }
            else // change bird to human
            {
                player.ChangeCharacterStatus();
            }
        }
    }
}
